JFLAGS = -g
JC = javac
.SUFFIXES: .java .class
.java.class:
		$(JC) $(JFLAGS) $*.java

CLASSES = \
		client.java \
		ConfigFileReader.java \
		Direction.java \
		Helpers.java \
		MessageEncoding.java \
		MulticastDB.java \
		QueryType.java \
		server.java \
		ServerQuery.java \
		ServerState.java

SERVERCLASSES = \
		ConfigFileReader.java \
		Direction.java \
		Helpers.java \
		MessageEncoding.java \
		MulticastDB.java \
		QueryType.java \
		server.java \
		ServerQuery.java \
		ServerState.java

CLIENTCLASSES = \
		client.java

default: classes

classes: $(CLASSES:.java=.class)

server: $(SERVERCLASSES:.java=.class)

client: $(CLIENTCLASSES:.java=.class)

clean:
		$(RM) *.class